<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: header/Bench.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_bench_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Bench.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_bench_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;osg/ShapeDrawable&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;osg/Geometry&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;osg/Material&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;osg/BlendFunc&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;osgDB/ReadFile&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;osg/PositionAttitudeTransform&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;osg/MatrixTransform&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;osg/Texture2D&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;osg/ComputeBoundsVisitor&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">using namespace </span>osg;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">namespace </span>brtr {</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classbrtr_1_1_bench.html">   24</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classbrtr_1_1_bench.html">Bench</a> : <span class="keyword">public</span> PositionAttitudeTransform{</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;          </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;      <span class="keyword">public</span>:</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;          </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;          <a class="code" href="classbrtr_1_1_bench.html">Bench</a>(<span class="keyword">const</span> Vec3&amp; pcenter = Vec3(0, 0, 0), <span class="keyword">const</span> <span class="keywordtype">double</span> plength = 8);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;          ref_ptr&lt;PositionAttitudeTransform&gt; getHitbox(<span class="keyword">const</span> <span class="keywordtype">double</span> alpha, <span class="keywordtype">double</span> height = 8);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;          <a class="code" href="classbrtr_1_1_bench.html">Bench</a>(<span class="keyword">const</span> <a class="code" href="classbrtr_1_1_bench.html">Bench</a>&amp;, <span class="keyword">const</span> CopyOp&amp; copyop = CopyOp::SHALLOW_COPY);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;          ~<a class="code" href="classbrtr_1_1_bench.html">Bench</a>();</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;      </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;      <span class="keyword">private</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;      </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      <span class="keywordtype">void</span> initBench(<span class="keyword">const</span> <span class="keywordtype">double</span> plength);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;      </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      ref_ptr&lt;Material&gt; createIronMaterial();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      ref_ptr&lt;Material&gt; createWoodMaterial();</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;      ref_ptr&lt;Group&gt; createLeg();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;      </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;      ref_ptr&lt;Group&gt; createBar();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;      </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;      </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;      ref_ptr&lt;Group&gt; createSeat(<span class="keyword">const</span> <span class="keywordtype">double</span> width);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      ref_ptr&lt;Group&gt; createArmrest(<span class="keywordtype">double</span> radius, <span class="keywordtype">double</span> width, <span class="keywordtype">double</span> length, <span class="keywordtype">double</span> totalwidth);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;      ref_ptr&lt;Geometry&gt; createArmrestSidesFrontBack(<span class="keywordtype">double</span> radius, <span class="keywordtype">double</span> width, <span class="keywordtype">int</span> lsteps, <span class="keywordtype">int</span> wsteps, <span class="keywordtype">bool</span> flip = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;      </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;      ref_ptr&lt;Geometry&gt; createArmrestSidesLeftRight(<span class="keywordtype">double</span> length, <span class="keywordtype">double</span> width, <span class="keywordtype">int</span> lsteps, <span class="keywordtype">int</span> wsteps, <span class="keywordtype">bool</span> flip = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classbrtr_1_1_bench.html#a5ea108ad6ee96d487ac00ecacc383aa2">  105</a></span>&#160;      Vec3 <a class="code" href="classbrtr_1_1_bench.html#a5ea108ad6ee96d487ac00ecacc383aa2">center</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classbrtr_1_1_bench.html#a81188a60871201d741c288396430964d">  107</a></span>&#160;      <span class="keywordtype">double</span> <a class="code" href="classbrtr_1_1_bench.html#a81188a60871201d741c288396430964d">length</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classbrtr_1_1_bench.html#aa3da8798872d1c2d595c24a48a5cb427">  108</a></span>&#160;      ref_ptr&lt;Group&gt;  <a class="code" href="classbrtr_1_1_bench.html#aa3da8798872d1c2d595c24a48a5cb427">bench</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;      ref_ptr&lt;DrawElementsUInt&gt; getPrimitiveSetforARectangle(<span class="keywordtype">int</span> lsteps, <span class="keywordtype">int</span> wsteps);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    };</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div>
<div class="ttc" id="classbrtr_1_1_bench_html_a5ea108ad6ee96d487ac00ecacc383aa2"><div class="ttname"><a href="classbrtr_1_1_bench.html#a5ea108ad6ee96d487ac00ecacc383aa2">brtr::Bench::center</a></div><div class="ttdeci">Vec3 center</div><div class="ttdef"><b>Definition:</b> <a href="_bench_8h_source.html#l00105">Bench.h:105</a></div></div>
<div class="ttc" id="classbrtr_1_1_bench_html"><div class="ttname"><a href="classbrtr_1_1_bench.html">brtr::Bench</a></div><div class="ttdoc">Bench class, creates a bench Object. </div><div class="ttdef"><b>Definition:</b> <a href="_bench_8h_source.html#l00024">Bench.h:24</a></div></div>
<div class="ttc" id="classbrtr_1_1_bench_html_a81188a60871201d741c288396430964d"><div class="ttname"><a href="classbrtr_1_1_bench.html#a81188a60871201d741c288396430964d">brtr::Bench::length</a></div><div class="ttdeci">double length</div><div class="ttdef"><b>Definition:</b> <a href="_bench_8h_source.html#l00107">Bench.h:107</a></div></div>
<div class="ttc" id="classbrtr_1_1_bench_html_aa3da8798872d1c2d595c24a48a5cb427"><div class="ttname"><a href="classbrtr_1_1_bench.html#aa3da8798872d1c2d595c24a48a5cb427">brtr::Bench::bench</a></div><div class="ttdeci">ref_ptr&lt; Group &gt; bench</div><div class="ttdef"><b>Definition:</b> <a href="_bench_8h_source.html#l00108">Bench.h:108</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_1ec98ce50fa6ec55b40b8ffb1df38c3c.html">header</a></li><li class="navelem"><a class="el" href="_bench_8h.html">Bench.h</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:24 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
